<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <!-- v-if指令，如果后面的变量或者表达式的结果为true，那么就会渲染这个元素，否则就不渲染 -->
      <p v-if="count === 1">Hello Vue!</p>
      <button v-on:click="show = !show">btn</button>
    </div>

    <script src="../Vue.js"></script>
    <script>
      new Vue({
        el: "#app",
        data: {
          show: false,
          count: 2,
        },
      });
    </script>
  </body>
</html>
